package test.factories;

import dominio.Cost;
import dominio.Node;

import java.util.ArrayList;
import java.util.Random;

/**
 * Created by Rafael Simon Garcia on 11/17/13.
 */

public class NodeFactory {

    public static Node Create(int id, ArrayList<Cost> costs){
        Random r = new Random();
        //return a new Node with a max time of 10 time units, a random name and desc and an arraylist of costs
        return new Node(id, "Random Task " + id, "Random Description for Task" + id, r.nextInt(10) ,costs);
    }
}
